home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-02-02 | 1.7 KB | 45 lines | [TEXT/GEOL] |
- Item 6443372 2-Feb-90 12:52PST
-
- From: D5369 Mgmt Sys Des, Chuck McMath,PRT
-
- To: MACAPP.TECH$ MacApp Technical
-
- cc: MACAPP.TEST MacApp SQA Team
-
- Sub: Audio Callbacks & Debugger
-
- Hey MacApper's:
-
- I have a MacApp application that asynchronously plays audio files (_big_ data
- files). The actual playing is done by a cohandler who schedules buffers in his
- DoIdle method. It's done like this:
-
- in InitSoundStuff:
- SndNewChannel(..., ..., ...);
-
- in DoIdle:
- if <stuff left to play> then
- SndDoCommand(bufferCmd,... ... )
- SndDoCommand(callbackCmd, ..., ...)
- else
- SndDisposeChannel(..., ...)
-
- The actual details are not important for what I'm asking; if anyone wants to
- find out the nitty gritty, please link me. Here's the problem: If I do a
- '-debug' build, then the first time the callback routine executes I break into
- the MacApp debugger. It tells me that I'm "trying to re-enter the MacApp
- Debugger" or something like that. And that's when I'm lucky -- sometimes the
- machine just goes into the Twilight Zone. If I do a '-nodebug' or '-nodebug
- -inspector' build it works just fine, and the callback routines work correctly
- (the callback just clears a flag, and I follow approved guidelines for setting
- and restoring A5, as the Sound Manager documentation on Phil & Dave II tells me
- to do).
-
- Anyone have experience with Sound Manager callback routines and the MacApp
- Debugger and have them working together?
-
- Thanks
-
- chuck mcmath
-
-